<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">   
<html xmlns="http://www.w3.org/1999/xhtml">   
<head>  
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
   <title>Ejemplo de uso de servicio web</title>  
</head>  
<body>  
  
<?php  
   $client = new SoapClient(null, array('uri' = 'http://localhost:81/',   
                                       'location' = 'http://localhost:81/persistencia/webservice.php'));  
   $marcas = $client.ObtenerEmpresas();  
?>         
      
   <h1>Listado de empresas disponibles</h1>  
      
   <ul>  
   <?php  
      foreach($empresa as $key = $value )  
      {  
   ?>  
         <li>  
            <?php echo $value; ?>  
            <ul>  
            <?php  
               $tipo = $client.ObtenerTipos($key);  
                      
               foreach($tipo as $m)  
               {  
            ?>  
                  <li><?php echo $m; ?></li>  
            <?php  
               }  
            ?>  
            </ul>  
         </li>  
   <?php  
      }  
   ?>  
   </ul>  
</body>  
</html>  